package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.ContractCompareEntity;
import com.xbongbong.saas.domain.entity.ContractTemplateBaseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author: yingjf
 * @date: 2023/3/7 19:18
 * @description:
 */
@Mapper
@Repository
public interface ContractTemplateBaseDao {
    Long insert(ContractTemplateBaseEntity entity);

    void insertBatch(List<ContractTemplateBaseEntity> list);

    ContractTemplateBaseEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(ContractTemplateBaseEntity entity);

    List<ContractTemplateBaseEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);
}
